package cn.wolfcode.ssm.util;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class JSONResult {
    private boolean success = true;
    private String msg;

    // 要携带的数据
    private Object data;
    //调用该方法表示操作失败
    public void mark(String msg){
        this.success = false;
        this.msg = msg;
    }
}
